#!/usr/bin/env python
# -*- coding: utf-8 -*-

from scapy.all import *
def callback(pkt):
    if pkt.haslayer(TCP):
        print pkt.summary()
        print pkt.show()
        print pkt[TCP]


sniff(filter="port 80", prn=callback, store=0, iface="eth0")
